heap and priority queues in data structure iwth example interview question